<%@ page import="controlelenha.Lenha" %>



<div class="fieldcontain ${hasErrors(bean: lenhaInstance, field: 'metragem', 'error')} required">
	<label for="metragem">
		<g:message code="lenha.metragem.label" default="Metragem" />
		<span class="required-indicator">*</span>
	</label>
	<g:field type="number" name="metragem" min="1" required="" value="${fieldValue(bean: lenhaInstance, field: 'metragem')}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: lenhaInstance, field: 'valor', 'error')} required">
	<label for="valor">
		<g:message code="lenha.valor.label" default="Valor" />
		<span class="required-indicator">*</span>
	</label>
	<g:field type="number" name="valor" min="0.01" required="" value="${fieldValue(bean: lenhaInstance, field: 'valor')}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: lenhaInstance, field: 'data', 'error')} required">
	<label for="data">
		<g:message code="lenha.data.label" default="Data" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="data" precision="day"  value="${lenhaInstance?.data}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: lenhaInstance, field: 'fornecedor', 'error')} required">
	<label for="fornecedor">
		<g:message code="lenha.fornecedor.label" default="Fornecedor" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="fornecedor" name="fornecedor.id" from="${ceramicasoledade.Fornecedor.list()}" optionKey="id" required="" value="${lenhaInstance?.fornecedor?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: lenhaInstance, field: 'veiculo', 'error')} required">
	<label for="veiculo">
		<g:message code="lenha.veiculo.label" default="Veiculo" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="veiculo" name="veiculo.id" from="${ceramicasoledade.Veiculo.list()}" optionKey="id" required="" value="${lenhaInstance?.veiculo?.id}" class="many-to-one"/>
</div>

